package com.jsnu.xiaochi.pojo;

import java.sql.Timestamp;

public class Comments {
    private String id;

    private String comment;

    private String score;

    private Timestamp createTime;

    private String username;

    private User user;

    public Comments(String id, String comment, String score, Timestamp createTime, String username) {
        this.id = id;
        this.comment = comment;
        this.score = score;
        this.createTime = createTime;
        this.username = username;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Comments() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment == null ? null : comment.trim();
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score == null ? null : score.trim();
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }
}